package com.eportal.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.eportal.base.BaseDAO;
import com.eportal.domain.TOpenLog;
import com.eportal.domain.UsersLoginOut;
import com.eportal.service.TUserLoginLogService;
import com.framework.jqgrid.JqGridPager;

@Service("tUserLoginLogService")
public class TUserLoginLogServiceImpl  implements TUserLoginLogService{
	
	@Resource(name="dao")
	private BaseDAO dao;

	@Override
	public UsersLoginOut get(Long sid){
		UsersLoginOut usersLoginOut = (UsersLoginOut)dao.getById(UsersLoginOut.class, sid);
		return usersLoginOut;
	}
	
	@Override
	public List<UsersLoginOut> list(JqGridPager jqGridPager) {
		 String sql = "select * from t04_usersloginout";
	     return dao.query(sql, jqGridPager);
	}
	
	
	
}
